import request from '@/utils/request'

export function login(userAccount, password) {
    return request({
        method: 'POST',
        url: 'sysUser/login',
        data: {
            userAccount,password
        }
    })
}



// 得到用户信息
export function getUserInfoApi() {
    return request({
        method: 'GET',
        url: 'sysUser/info',
    })
}



// 退出登录
export function logoutApi() {
    return request({
        method: 'DELETE',
        url:'sysUser/logout'
    })
}